package org.xukai.remoting.io.nio.weiyi;

/**
 * @ Type : com.cloud.tool.socket
 * @ Author : TimLi
 * @ Desc :
 * @ Date : 2016-09-28 15:25
 */
public class WanPatientInfo {


    private String hospitalId;//医院Id

    private String hospitalName;//医院名称

    private String deptId; //科室Id

    private String deptName;//科室

    private String devId;//设备号


    private String name;   //姓名

    private String birthDate; //病人出生日期YYYY-MM-dd

    private String height;//身高

    private String weight;//体重

    private Integer age;//年龄

    private String sex;//性别，m代表男、f代表女

    private String blood;//血型，A、B、AB、O

    private String type;//a代表成人、c代表儿童、n代表 新生儿

    private String certId;//身份证

    private String phone;//手机号码

    private String address;////家庭住址

    private String recNo;//病历号

    private String recId;//记录号

    private String bedInfo;//床位号

    private String enterDate;//入院日期 yyyy-mm-dd

    private String drName;       //主治医生姓名

    private String doctorId;//医生Id

    private short nChnlIdx;

    private String nStatUnit;//身高单位，固定为0，表示cm

    private String nAvoiUnit;//体重单位，固定为0，表示kg


    private String remark;//保留


    public String getHospitalId() {
        return hospitalId;
    }

    public void setHospitalId(String hospitalId) {
        this.hospitalId = hospitalId;
    }

    public String getHospitalName() {
        return hospitalName;
    }

    public void setHospitalName(String hospitalName) {
        this.hospitalName = hospitalName;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getDevId() {
        return devId;
    }

    public void setDevId(String devId) {
        this.devId = devId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(String birthDate) {
        this.birthDate = birthDate;
    }

    public String getHeight() {
        return height;
    }

    public void setHeight(String height) {
        this.height = height;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBlood() {
        return blood;
    }

    public void setBlood(String blood) {
        this.blood = blood;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCertId() {
        return certId;
    }

    public void setCertId(String certId) {
        this.certId = certId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRecNo() {
        return recNo;
    }

    public void setRecNo(String recNo) {
        this.recNo = recNo;
    }

    public String getRecId() {
        return recId;
    }

    public void setRecId(String recId) {
        this.recId = recId;
    }

    public String getBedInfo() {
        return bedInfo;
    }

    public void setBedInfo(String bedInfo) {
        this.bedInfo = bedInfo;
    }

    public String getEnterDate() {
        return enterDate;
    }

    public void setEnterDate(String enterDate) {
        this.enterDate = enterDate;
    }

    public String getDrName() {
        return drName;
    }

    public void setDrName(String drName) {
        this.drName = drName;
    }

    public String getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(String doctorId) {
        this.doctorId = doctorId;
    }

    public short getnChnlIdx() {
        return nChnlIdx;
    }

    public void setnChnlIdx(short nChnlIdx) {
        this.nChnlIdx = nChnlIdx;
    }

    public String getnStatUnit() {
        return nStatUnit;
    }

    public void setnStatUnit(String nStatUnit) {
        this.nStatUnit = nStatUnit;
    }

    public String getnAvoiUnit() {
        return nAvoiUnit;
    }

    public void setnAvoiUnit(String nAvoiUnit) {
        this.nAvoiUnit = nAvoiUnit;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WanPatientInfo that = (WanPatientInfo) o;

        if (!certId.equals(that.certId)) return false;
        if (!deptId.equals(that.deptId)) return false;
        if (!hospitalId.equals(that.hospitalId)) return false;
        if (!name.equals(that.name)) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = hospitalId.hashCode();
        result = 31 * result + deptId.hashCode();
        result = 31 * result + name.hashCode();
        result = 31 * result + certId.hashCode();
        return result;
    }
}
